package com.lsb.blog.service;

import com.lsb.blog.pojo.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lsb.blog.response.Result;
import com.lsb.blog.vo.Archives;
import com.lsb.blog.vo.ArticleVo;
import com.lsb.blog.vo.params.ArticleParam;
import com.lsb.blog.vo.params.PageParams;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liusibo
 * @since 2021-08-01
 */
public interface ArticleService extends IService<Article> {
    List<ArticleVo> listArticlesPage(PageParams pageParams);

    List<ArticleVo> hotArticle(int limit);

    List<ArticleVo> newArticles(int limit);

    List<Archives> listArchives();

    ArticleVo findArticleVoById(Long id);

    Result publish(ArticleParam articleParam);
}
